//
//  CourseWorkCreationViewController.h
//  Gradekeeper0.2
//
//  Created by Tim Qian on 09-12-3.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "Courses.h"
#import "CourseWork.h"

@interface CourseWorkCreationViewController : UIViewController {
	IBOutlet UITextField *nameTextField;
	IBOutlet UITextField *markTextField;
	IBOutlet UITextField *maxMarkTextField;
	IBOutlet UITextField *typeTextField;
	IBOutlet UITextField *startDateTextField;
	IBOutlet UITextField *dueDateTextField;
	IBOutlet UIButton *updateButton;
	Courses * course;
}
@property (nonatomic, retain) Courses *course;
@property (nonatomic, retain) IBOutlet UITextField *nameTextField;
@property (nonatomic, retain) IBOutlet UITextField *markTextField;
@property (nonatomic, retain) IBOutlet UITextField *maxMarkTextField;
@property (nonatomic, retain) IBOutlet UITextField *typeTextField;
@property (nonatomic, retain) IBOutlet UITextField *startDateTextField;
@property (nonatomic, retain) IBOutlet UITextField *dueDateTextField;
@property (nonatomic, retain) IBOutlet UIButton *updateButton;

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil course:(Courses*)newCourse;
- (IBAction) update:(id)sender;
- (IBAction) cancelCreate:(id)sender;
- (void)alertView:(UIAlertView *)alertView didDismissWithButtonIndex:(NSInteger)buttonIndex;
//- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string;
- (BOOL)textFieldShouldReturn:(UITextField *)textField;


@end
